gtk4.git
5 years agoUpdated Czech translation
Marek Černocký [Sun, 14 Mar 2021 08:28:17 +0000 (09:28 +0100)]
Updated Czech translation

5 years agoMerge branch 'gles-coloring' into 'master'
Matthias Clasen [Sat, 13 Mar 2021 22:27:04 +0000 (22:27 +0000)]
Merge branch 'gles-coloring' into 'master'

ngl: Fix the coloring shader on GLES 2.0

See merge request GNOME/gtk!3294

5 years agongl: Fix the coloring shader on GLES 2.0
Emmanuel Gil Peyrot [Sat, 13 Mar 2021 22:00:54 +0000 (22:00 +0000)]
ngl: Fix the coloring shader on GLES 2.0

Integer varyings didn’t exist in GLSL ES 1.00, neither did the flat
attribute.

5 years agoUpdate Norwegian Bokmål translation
Kjartan Maraas [Sat, 13 Mar 2021 16:04:48 +0000 (16:04 +0000)]
Update Norwegian Bokmål translation

(cherry picked from commit 70ee21db71e5b8de0aff406d3d9f1decddebfa09)

5 years agoMerge branch 'ebassi/for-master' into 'master'
Matthias Clasen [Sat, 13 Mar 2021 12:36:56 +0000 (12:36 +0000)]
Merge branch 'ebassi/for-master' into 'master'

docs: Fix the dependencies links

See merge request GNOME/gtk!3284

5 years agoMerge branch 'ngl-textview-cursor' into 'master'
Matthias Clasen [Sat, 13 Mar 2021 12:33:15 +0000 (12:33 +0000)]
Merge branch 'ngl-textview-cursor' into 'master'

Ngl textview cursor

See merge request GNOME/gtk!3292

5 years agotextview: Fix blinking block cursors
Matthias Clasen [Sat, 13 Mar 2021 00:44:31 +0000 (19:44 -0500)]
textview: Fix blinking block cursors

When we have a block cursor, we need to discard the
cached node of the line containing the cursor, in order
to get a blinking cursor.

5 years agotextview: Fix blinking block cursors
Matthias Clasen [Sat, 13 Mar 2021 00:44:31 +0000 (19:44 -0500)]
textview: Fix blinking block cursors

When we have a block cursor, we need to discard the
cached node of the line containing the cursor, in order
to get a blinking cursor.

5 years agotextlayout: Render cursors at the end
Matthias Clasen [Sat, 13 Mar 2021 00:28:36 +0000 (19:28 -0500)]
textlayout: Render cursors at the end

Don't place the insertion cursor render nodes in the
middle of the text nodes for all the text. This helps
the renderer batching the text draw calls together.

5 years agongl: Fix up some debug printouts
Matthias Clasen [Fri, 12 Mar 2021 23:26:15 +0000 (18:26 -0500)]
ngl: Fix up some debug printouts

5 years agoMerge branch 'wip/chergert/fewer-uniforms' into 'master'
Matthias Clasen [Fri, 12 Mar 2021 22:55:00 +0000 (22:55 +0000)]
Merge branch 'wip/chergert/fewer-uniforms' into 'master'

ngl: apply fewer uniforms

See merge request GNOME/gtk!3289

5 years agoMerge branch 'pgriffis/readme-fixes' into 'master'
Matthias Clasen [Fri, 12 Mar 2021 22:51:16 +0000 (22:51 +0000)]
Merge branch 'pgriffis/readme-fixes' into 'master'

readme: Fix broken doc links

See merge request GNOME/gtk!3291

5 years agoreadme: Fix broken doc links
Patrick Griffis [Fri, 12 Mar 2021 22:02:55 +0000 (22:02 +0000)]
readme: Fix broken doc links

5 years agoMerge branch 'ngl-vertex-attributes' into 'master'
Matthias Clasen [Fri, 12 Mar 2021 21:26:52 +0000 (21:26 +0000)]
Merge branch 'ngl-vertex-attributes' into 'master'

Ngl vertex attributes

See merge request GNOME/gtk!3290

5 years agongl: Identify shaders
Matthias Clasen [Fri, 12 Mar 2021 19:25:05 +0000 (14:25 -0500)]
ngl: Identify shaders

Add a comment with a name to each shader. That makes
identifying the shaders in apitrace much easier.

5 years agongl: reintroduce comparison checks
Christian Hergert [Fri, 12 Mar 2021 19:47:15 +0000 (11:47 -0800)]
ngl: reintroduce comparison checks

This reduces how many changes we make when recording uniform state, which
increases the chances that the data offset will be the same when applying
uniforms.

5 years agongl: add front cache to reduce uniform changes
Christian Hergert [Fri, 12 Mar 2021 18:16:52 +0000 (10:16 -0800)]
ngl: add front cache to reduce uniform changes

Since we make full snapshots when recording uniform state of batches, we
need to perform some deduplication to avoid so many repeated uniform calls.

This uses a closed hashtable to determine if we are likely changing the
value to something new.

This does not currently compare values, it instead only compares that we
are going to point at a new offset into the uniform buffer. We could go
further if we compare upon updating values (we did that early on in the
prototype) so that offsets are less likely to be changed.

5 years agogtk-demo: Add a test for scrolling with Emoji
Matthias Clasen [Fri, 12 Mar 2021 06:44:05 +0000 (01:44 -0500)]
gtk-demo: Add a test for scrolling with Emoji

Make a text with lots of Emoji and text. This
is exercising the GL renderers switching between
different shaders for color and plain glyphs.

5 years agongl: Make the coloring shader more versatile
Matthias Clasen [Fri, 12 Mar 2021 06:27:19 +0000 (01:27 -0500)]
ngl: Make the coloring shader more versatile

When the color passed is transparent black, use
the color from the texture as source, instead of
as mask. This lets use use the coloring program
both for regular and color glyphs, avoiding
program changes in text with Emoji.

5 years agongl: Set color as vertex attribute
Matthias Clasen [Fri, 12 Mar 2021 00:46:15 +0000 (19:46 -0500)]
ngl: Set color as vertex attribute

Instead of using uniforms for color used in multiple
programs, pass it as vertex attributes. This will let
us batch more draw calls, since we don't have to change
uniforms so often. In particular, for syntax-highlighted
text.

5 years agogsk: Give ngl its own shader sources
Matthias Clasen [Fri, 12 Mar 2021 02:31:31 +0000 (21:31 -0500)]
gsk: Give ngl its own shader sources

We may want to change the interface between the
shaders and the renderer for ngl, and therefore,
sharing the shaders between gl and ngl will not
be practical, going forward.

5 years agoMerge branch 'fix-3704' into 'master'
Matthias Clasen [Fri, 12 Mar 2021 14:06:33 +0000 (14:06 +0000)]
Merge branch 'fix-3704' into 'master'

gdksurface-win32.c: Fix window menu positioning (issue #3704)

Closes #3704

See merge request GNOME/gtk!3286

5 years agobuild: Install the API references
Emmanuele Bassi [Fri, 12 Mar 2021 11:13:54 +0000 (11:13 +0000)]
build: Install the API references

We are building them, but not installing them.

5 years agodocs: Fix the dependencies links
Emmanuele Bassi [Thu, 11 Mar 2021 17:36:36 +0000 (17:36 +0000)]
docs: Fix the dependencies links

Use the GitLab pages location until we can link to a proper space on
developer.gnome.org.

5 years agogdksurface-win32.c: Fix window menu positioning
Chun-wei Fan [Fri, 12 Mar 2021 10:39:04 +0000 (18:39 +0800)]
gdksurface-win32.c: Fix window menu positioning

We ought to get the coordinates of where the window menu should be
displayed using gdk_win32_surface_get_root_coords(), instead of rounding
the position that we obtained with gdk_event_get_position().

Also rename items a bit in the same function, and call
gdk_event_get_event_type() for consistency with the other backends.

Fixes issue #3704.

5 years agoUpdate Korean translation
Changwoo Ryu [Fri, 12 Mar 2021 08:50:28 +0000 (08:50 +0000)]
Update Korean translation

(cherry picked from commit 7774d5d85e86f97d9ef7195c808bcd2d88ef49eb)

5 years agoMerge branch 'bilelmoussaoui/shortcuts-annotation' into 'master'
Emmanuele Bassi [Thu, 11 Mar 2021 18:40:32 +0000 (18:40 +0000)]
Merge branch 'bilelmoussaoui/shortcuts-annotation' into 'master'

g-i: fix gtk_shortcut_label_new annotation

See merge request GNOME/gtk!3285

5 years agog-i: fix gtk_shortcut_label_new annotation
Bilal Elmoussaoui [Thu, 11 Mar 2021 18:21:56 +0000 (18:21 +0000)]
g-i: fix gtk_shortcut_label_new annotation

5 years agoMerge branch 'ebassi/gidocgen' into 'master'
Emmanuele Bassi [Thu, 11 Mar 2021 17:11:57 +0000 (17:11 +0000)]
Merge branch 'ebassi/gidocgen' into 'master'

Move API reference to gi-docgen

See merge request GNOME/gtk!3222

5 years agodocs: Add URL maps for cross links
Emmanuele Bassi [Thu, 11 Mar 2021 16:46:02 +0000 (16:46 +0000)]
docs: Add URL maps for cross links

5 years agodocs: Enable search
Emmanuele Bassi [Thu, 11 Mar 2021 16:36:48 +0000 (16:36 +0000)]
docs: Enable search

5 years agodocs: Update the "running GTK apps" section
Emmanuele Bassi [Mon, 8 Mar 2021 17:58:14 +0000 (17:58 +0000)]
docs: Update the "running GTK apps" section

Style the content a bit better, and use the appropriate links.

5 years agoSmall updates to the coding and documentation style
Matthias Clasen [Fri, 5 Mar 2021 17:44:41 +0000 (12:44 -0500)]
Small updates to the coding and documentation style

Mention summary sentences, and a few other things.

5 years agobuild: Add missing variable definition
Emmanuele Bassi [Fri, 5 Mar 2021 16:44:17 +0000 (16:44 +0000)]
build: Add missing variable definition

5 years agobuild: Add a GIR dependency to PangoCairo
Emmanuele Bassi [Fri, 5 Mar 2021 14:37:31 +0000 (14:37 +0000)]
build: Add a GIR dependency to PangoCairo

This is not strictly needed from an introspection perspective, but:

 - GTK strictly depends on PangoCairo internally
 - we want to integrate the GDK docs with PangoCairo's

So even though we don't have an explicit dependency on PangoCairo types
in our ABI, we do assume that people will be able to use the PangoCairo
API with GTK.

5 years agoHandle static inline GtkOrdering function
Emmanuele Bassi [Thu, 4 Mar 2021 22:58:05 +0000 (22:58 +0000)]
Handle static inline GtkOrdering function

The introspection scanner does not handle `static inline` functions:
they are not in the shared library, so cannot be dlsym() out of it; and
the `static` keyword tells g-ir-scanner to skip the function declaration
entirely.

We can trick the scanner into thinking the gtk_ordering_from_cmpfunc()
symbol is a real, public one, by declaring and defining a regular
function under the `__GI_SCANNER__` guard; the symbol does not appear
when actually building GTK, or any code using GTK, so we don't risk
collisions.

5 years agodocs: Show class hierarchy in the API references
Emmanuele Bassi [Thu, 4 Mar 2021 17:42:59 +0000 (17:42 +0000)]
docs: Show class hierarchy in the API references

5 years agolabel: Fix some external links
Matthias Clasen [Tue, 2 Mar 2021 16:09:28 +0000 (11:09 -0500)]
label: Fix some external links

I had put in a bunch of [class@Pango.Attribute],
but it needs to be [struct@Pango.Attribute].

Know your dependencies` type hierarchy!

5 years agotext: Fix some copy-paste mishap
Matthias Clasen [Tue, 2 Mar 2021 16:08:13 +0000 (11:08 -0500)]
text: Fix some copy-paste mishap

A bunch of occurrances of "the self" looked like
absurdist short fiction:

"...the self scrolled off the screen to the left"

5 years agowidget: Fix up some links
Matthias Clasen [Tue, 2 Mar 2021 04:41:04 +0000 (23:41 -0500)]
widget: Fix up some links

Fix up some links to vfuncs and to sections, as well as class methods.

5 years agoshortcuttrigger: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:54:48 +0000 (22:54 -0500)]
shortcuttrigger: Convert docs

5 years agoshortcutlabel: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:54:37 +0000 (22:54 -0500)]
shortcutlabel: Convert docs

5 years agoshortcutcontroller: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:54:23 +0000 (22:54 -0500)]
shortcutcontroller: Convert docs

5 years agoshortcutaction: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:54:11 +0000 (22:54 -0500)]
shortcutaction: Convert docs

5 years agoshortcut: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:53:57 +0000 (22:53 -0500)]
shortcut: Convert docs

5 years agosizegroup: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:53:47 +0000 (22:53 -0500)]
sizegroup: Convert docs

5 years agotestutils: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:53:25 +0000 (22:53 -0500)]
testutils: Convert docs

5 years agosnapshot: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:53:00 +0000 (22:53 -0500)]
snapshot: Convert docs

5 years agotooltip: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:52:48 +0000 (22:52 -0500)]
tooltip: Convert docs

5 years agosettings: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:52:39 +0000 (22:52 -0500)]
settings: Convert docs

5 years agorecentmanager: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:52:30 +0000 (22:52 -0500)]
recentmanager: Convert docs

5 years agomountoperation: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:52:20 +0000 (22:52 -0500)]
mountoperation: Convert docs

5 years agomenutrackeritem: Remove SECTION
Matthias Clasen [Tue, 2 Mar 2021 03:51:55 +0000 (22:51 -0500)]
menutrackeritem: Remove SECTION

This is private

5 years agomenutracker: Remove SECTION
Matthias Clasen [Tue, 2 Mar 2021 03:51:38 +0000 (22:51 -0500)]
menutracker: Remove SECTION

This is private.

5 years agotreesortable: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:51:03 +0000 (22:51 -0500)]
treesortable: Add a summary

5 years agotreeselection: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:50:53 +0000 (22:50 -0500)]
treeselection: Add a summary

5 years agotreemodelsort: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:50:40 +0000 (22:50 -0500)]
treemodelsort: Add a summary

5 years agotreemodelfilter: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:50:27 +0000 (22:50 -0500)]
treemodelfilter: Add a summary

5 years agotreemodel: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:50:14 +0000 (22:50 -0500)]
treemodel: Add a summary

5 years agotreednd: Add summaries
Matthias Clasen [Tue, 2 Mar 2021 03:49:59 +0000 (22:49 -0500)]
treednd: Add summaries

5 years agotreestore: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:49:47 +0000 (22:49 -0500)]
treestore: Add a summary

5 years agoliststore: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:49:33 +0000 (22:49 -0500)]
liststore: Add a summary

5 years agotreeviewcolumn: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:49:19 +0000 (22:49 -0500)]
treeviewcolumn: Add a summary

5 years agotreeview: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:49:09 +0000 (22:49 -0500)]
treeview: Add a summary

5 years agowindowgroup: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:48:08 +0000 (22:48 -0500)]
windowgroup: Convert docs

5 years agolistbox: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:47:51 +0000 (22:47 -0500)]
listbox: Convert docs

5 years agoiconview: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:47:38 +0000 (22:47 -0500)]
iconview: Add a summary

5 years agoconstraintsolver: Remove SECTION
Matthias Clasen [Tue, 2 Mar 2021 03:47:23 +0000 (22:47 -0500)]
constraintsolver: Remove SECTION

This is private

5 years agocellview: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:47:07 +0000 (22:47 -0500)]
cellview: Add a summary

5 years agocellrenderertoggle: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:39:20 +0000 (22:39 -0500)]
cellrenderertoggle: Add a summary

5 years agocellrenderertext: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:39:06 +0000 (22:39 -0500)]
cellrenderertext: Add a summary

5 years agocellrendererspinner: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:38:49 +0000 (22:38 -0500)]
cellrendererspinner: Add a summary

5 years agocellrendererspin: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:38:34 +0000 (22:38 -0500)]
cellrendererspin: Add a summary

5 years agocellrendererprogress: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:38:20 +0000 (22:38 -0500)]
cellrendererprogress: Add a summary

5 years agocellrendererpixbuf: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:38:04 +0000 (22:38 -0500)]
cellrendererpixbuf: Add a summary

5 years agocelleditable: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:37:52 +0000 (22:37 -0500)]
celleditable: Add a summary

5 years agocellrenderercombo: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:37:23 +0000 (22:37 -0500)]
cellrenderercombo: Add a summary

5 years agocellrendereraccel: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:37:04 +0000 (22:37 -0500)]
cellrendereraccel: Add a summary

5 years agocellrenderer: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:36:49 +0000 (22:36 -0500)]
cellrenderer: Add a summary

5 years agocelllayout: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:36:37 +0000 (22:36 -0500)]
celllayout: Add a summary

5 years agocellareacontext: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:36:26 +0000 (22:36 -0500)]
cellareacontext: Add a summary

5 years agocellareabox: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:36:08 +0000 (22:36 -0500)]
cellareabox: Add a summary

5 years agocellarea: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:35:51 +0000 (22:35 -0500)]
cellarea: Add a summary

5 years agoactionobserver: Drop SECTION
Matthias Clasen [Tue, 2 Mar 2021 03:35:18 +0000 (22:35 -0500)]
actionobserver: Drop SECTION

This is private.

5 years agoactionobservable: Drop SECTION
Matthias Clasen [Tue, 2 Mar 2021 03:35:03 +0000 (22:35 -0500)]
actionobservable: Drop SECTION

This is private.

5 years agoactionmuxer: Drop SECTION
Matthias Clasen [Tue, 2 Mar 2021 03:34:47 +0000 (22:34 -0500)]
actionmuxer: Drop SECTION

This is private.

5 years agoaccessiblevalue: Drop SECTION
Matthias Clasen [Tue, 2 Mar 2021 03:34:31 +0000 (22:34 -0500)]
accessiblevalue: Drop SECTION

This is private.

5 years agocssdataurl: Drop SECTION
Matthias Clasen [Tue, 2 Mar 2021 03:34:09 +0000 (22:34 -0500)]
cssdataurl: Drop SECTION

This is private

5 years agobloomfilter: Drop the SECTION
Matthias Clasen [Mon, 1 Mar 2021 16:14:03 +0000 (11:14 -0500)]
bloomfilter: Drop the SECTION

This is private, no need.

5 years agoaccelgroup: Convert docs
Matthias Clasen [Mon, 1 Mar 2021 16:11:40 +0000 (11:11 -0500)]
accelgroup: Convert docs

Drop an unused SECTION, and convert links.

5 years agoscrollbar: Tweak docs
Matthias Clasen [Mon, 1 Mar 2021 13:19:09 +0000 (08:19 -0500)]
scrollbar: Tweak docs

5 years agoplacesview: Remove SECTION
Matthias Clasen [Mon, 1 Mar 2021 13:18:45 +0000 (08:18 -0500)]
placesview: Remove SECTION

Its private, no need.

5 years agoplacessidebar: Remove SECTION
Matthias Clasen [Mon, 1 Mar 2021 13:18:10 +0000 (08:18 -0500)]
placessidebar: Remove SECTION

Its private, no need.

5 years agomodelbutton: Remove SECTION
Matthias Clasen [Mon, 1 Mar 2021 13:17:48 +0000 (08:17 -0500)]
modelbutton: Remove SECTION

Its private, no need.

5 years agofilechooserwidget: Convert docs
Matthias Clasen [Mon, 1 Mar 2021 13:17:29 +0000 (08:17 -0500)]
filechooserwidget: Convert docs

5 years agotreelistmodel: Convert docs
Matthias Clasen [Mon, 1 Mar 2021 06:51:48 +0000 (01:51 -0500)]
treelistmodel: Convert docs

5 years agotreeexpander: Convert docs
Matthias Clasen [Mon, 1 Mar 2021 06:51:37 +0000 (01:51 -0500)]
treeexpander: Convert docs

5 years agoshortcuttrigger: Tweak docs
Matthias Clasen [Mon, 1 Mar 2021 06:51:18 +0000 (01:51 -0500)]
shortcuttrigger: Tweak docs

5 years agoselectionmodel: Convert docs
Matthias Clasen [Mon, 1 Mar 2021 06:51:02 +0000 (01:51 -0500)]
selectionmodel: Convert docs

5 years agomultiselection: Convert docs
Matthias Clasen [Mon, 1 Mar 2021 06:50:44 +0000 (01:50 -0500)]
multiselection: Convert docs